import Vue from 'vue'
import Router from 'vue-router'

// 基本功能
import Login from '@/components/Login' // 布局
import Error from '@/components/Error' // Error
import Layout from '@/components/Layout' // 布局
import Console from '@/components/Console' // 控制台
import UserProfile from '@/components/UserProfile' // 用户概况

// 小程序设置
import IndexTempletManage from '@/components/WechatAppConfig/IndexTempletManage' // 小程序首页设置
import OrderTempletManage from '@/components/WechatAppConfig/OrderTempletManage' // 小程序下单设置
import UserCenterManage from '@/components/WechatAppConfig/UserCenterManage' // 小程序用户中心设置
import NavManage from '@/components/WechatAppConfig/NavManage' // 小程序导航设置

// 基本设置
import ProcedureConfig from '@/components/BasicConfig/ProcedureConfig' // 小程序设置
import PaymentConfig from '@/components/BasicConfig/PaymentConfig' // 支付设置
import ClauseConfig from '@/components/BasicConfig/ClauseConfig' // 条款设置
import ClauseEditer from '@/components/BasicConfig/ClauseEditer' // 条款编辑
import NoticeConfig from '@/components/BasicConfig/NoticeConfig' // 公告管理
import NoticeEditer from '@/components/BasicConfig/NoticeEditer' // 公告编辑
import BankConfig from '@/components/BasicConfig/BankConfig' // 开户行管理
import BankEditer from '@/components/BasicConfig/BankEditer' // 开户行编辑
import CommercialTenantConfig from '@/components/BasicConfig/CommercialTenantConfig' // 商家设置
import LabelSetting from '@/components/BasicConfig/LabelSetting' // 标签设置
import SmsSetting from '@/components/BasicConfig/SmsSetting' // 短信设置
import TerritorialRestriction from '@/components/BasicConfig/TerritorialRestriction' // 区域限制
import WechatConfig from '@/components/BasicConfig/WechatConfig' // 微信公众号设置
import TempletMessageConfig from '@/components/BasicConfig/TempletMessageConfig' // 模板消息设置
import FileUploadConfig from '@/components/BasicConfig/FileUploadConfig' // 文件上传设置

// 任务大厅
import AssignmentAllot from '@/components/AssignmentHall/AssignmentAllot' // 任务分配

// 订单管理
import OrderTabulation from '@/components/OrderManagement/OrderTabulation' // 订单列表

// 代理商
import AgentTabulation from '@/components/AgentManagement/AgentTabulation' // 代理商列表
import AgentEditor from '@/components/AgentManagement/AgentEditor' // 代理商编辑
import AgentConfigEditor from '@/components/AgentManagement/AgentConfigEditor' // 代理商设置编辑
import AgentDrawMoney from '@/components/AgentManagement/AgentDrawMoney' // 代理商提现申请列表
import AgentTransactionDetail from '@/components/AgentManagement/AgentTransactionDetail' // 代理商交易明细列表
import AgentConfig from '@/components/AgentManagement/AgentConfig' // 代理商设置
import AgentIngress from '@/components/AgentManagement/AgentIngress' // 代理商入口
import ServicePersonalManagement from '@/components/AgentManagement/ServicePersonalManagement' // 配送员管理

// 配送员
import ServicePersonalApply from '@/components/ServicePersonal/ServicePersonalApply' // 配送员申请
import ServicePersonalTabulation from '@/components/ServicePersonal/ServicePersonalTabulation' // 配送员列表
import ServicePersonalTransactionDetail from '@/components/ServicePersonal/ServicePersonalTransactionDetail' // 交易明细
import ServicePersonalGrade from '@/components/ServicePersonal/ServicePersonalGrade' // 配送员评价
import ServiceDrawMoney from '@/components/ServicePersonal/ServiceDrawMoney' // 配送员提现申请
import AuthorizationService from '@/components/ServicePersonal/AuthorizationService' // 授权服务
import ServiceRefundPromiseMoney from '@/components/ServicePersonal/ServiceRefundPromiseMoney' // 配送员保证金退款

// 顾客
import AssociatorGrade from '@/components/ConsumerManagement/AssociatorGrade' // 会员等级
import GrowthValueConfig from '@/components/ConsumerManagement/GrowthValueConfig' // 成长值设置
import AssociatorGradeEditor from '@/components/ConsumerManagement/AssociatorGradeEditor' // 会员等级编辑
import ConsumerTabulation from '@/components/ConsumerManagement/ConsumerTabulation' // 顾客列表
import ConsumerDrawMoney from '@/components/ConsumerManagement/ConsumerDrawMoney' // 提现申请

// 模块管理
// import ModuleAuditing from '@/components/ModuleManagement/ModuleAuditing' // 模块审核
import AutoModuleDock from '@/components/ModuleManagement/AutoModuleDock' // 智能对接
import ModuleList from '@/components/ModuleManagement/ModuleList' // 模块列表

// 售后服务
import FeedbackTabulation from '@/components/AfterService/FeedbackTabulation' // 用户反馈列表

// 营销管理
import CouponTabulation from '@/components/MarketingManagement/CouponTabulation' // 优惠券
import CouponEditor from '@/components/MarketingManagement/CouponEditor' // 优惠券编辑
import FullSubtractionTabulation from '@/components/MarketingManagement/FullSubtractionTabulation' // 满减奖励
import FullSubtractionEditor from '@/components/MarketingManagement/FullSubtractionEditor' // 满减奖励编辑
import ReceivingOrderRewardTabulation from '@/components/MarketingManagement/ReceivingOrderRewardTabulation' // 接单奖励
import ReceivingOrderRewardEditor from '@/components/MarketingManagement/ReceivingOrderRewardEditor' // 接单奖励编辑

// 平台设置
import CashDepositGradeManagement from '@/components/PlatformConfig/CashDepositGradeManagement' // 保证金管理
import CashDepositGradeEditor from '@/components/PlatformConfig/CashDepositGradeEditor' // 保证金编辑
import PlatformPriceModelConfig from '@/components/PlatformConfig/PlatformPriceModelConfig' // 计费管理
import DistanceFreightTempletManagement from '@/components/PlatformConfig/DistanceFreightTempletManagement' // 距离运费模板管理
import DistanceFreightTempletEditor from '@/components/PlatformConfig/DistanceFreightTempletEditor' // 距离运费模板编辑
import WeightFreightTempletManagement from '@/components/PlatformConfig/WeightFreightTempletManagement' // 重量运费模板管理
import WeightFreightTempletEditor from '@/components/PlatformConfig/WeightFreightTempletEditor' // 重量运费模板编辑
import FellInFreightTempletManagement from '@/components/PlatformConfig/FellInFreightTempletManagement' // 排队金额模板管理
import FellInFreightTempletEditor from '@/components/PlatformConfig/FellInFreightTempletEditor' // 排队金额模板编辑
import TimedFreightTempletManagement from '@/components/PlatformConfig/TimedFreightTempletManagement' // 定时运费模板管理
import TimedFreightTempletEditor from '@/components/PlatformConfig/TimedFreightTempletEditor' // 定时运费模板编辑

// 系统设置
import SystemInfo from '@/components/SystemConfig/SystemInfo' // 系统信息

// 插件管理
import AllPlugin from '@/components/PluginManage/AllPlugin' // 全部插件


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Layout',
      component: Layout,
      props: true,
      meta:{
        breadcrumbName:'首页'
      },
      children: [
        // 基本功能
        {
          path: '/',
          name: 'Console',
          component: Console,
          meta:{
            breadcrumbName:'控制台'
          }
        },
        {
          path: '/UserProfile',
          name: 'UserProfile',
          component: UserProfile,
          meta:{
            breadcrumbName:'用户概况'
          }
        },
        // 小程序设置设置
        {
          path: '/WechatAppConfig/IndexTempletManage',
          name: 'IndexTempletManage',
          component: IndexTempletManage,
          meta:{
            breadcrumbName:'小程序首页设置'
          }
        },
        {
          path: '/WechatAppConfig/OrderTempletManage',
          name: 'OrderTempletManage',
          component: OrderTempletManage,
          meta:{
            breadcrumbName:'小程序下单设置'
          }
        },
        {
          path: '/WechatAppConfig/UserCenterManage',
          name: 'UserCenterManage',
          component: UserCenterManage,
          meta:{
            breadcrumbName:'小程序用户中心设置'
          }
        },
        {
          path: '/WechatAppConfig/NavManage',
          name: 'NavManage',
          component: NavManage,
          meta:{
            breadcrumbName:'小程序导航设置'
          }
        },
        // 基本设置
        {
          path: '/BasicConfig/ProcedureConfig',
          name: 'ProcedureConfig',
          component: ProcedureConfig,
          meta:{
            breadcrumbName:'小程序设置'
          }
        },
        {
          path: '/BasicConfig/PaymentConfig',
          name: 'PaymentConfig',
          component: PaymentConfig,
          meta:{
            breadcrumbName:'支付设置'
          }
        },
        {
          path: '/BasicConfig/ClauseConfig',
          name: 'ClauseConfig',
          component: ClauseConfig,
          meta:{
            breadcrumbName:'条款设置'
          }
        },
        {
          path: '/BasicConfig/ClauseEditer',
          name: 'ClauseEditer',
          component: ClauseEditer,
          props: true,
          meta:{
            breadcrumbName:'条款编辑'
          }
        },
        {
          path: '/BasicConfig/NoticeConfig',
          name: 'NoticeConfig',
          component: NoticeConfig,
          meta:{
            breadcrumbName:'公告管理'
          }
        },
        {
          path: '/BasicConfig/NoticeEditer',
          name: 'NoticeEditer',
          component: NoticeEditer,
          props: true,
          meta:{
            breadcrumbName:'公告编辑'
          }
        },
        {
          path: '/BasicConfig/BankConfig',
          name: 'BankConfig',
          component: BankConfig,
          meta:{
            breadcrumbName:'开户行管理'
          }
        },
        {
          path: '/BasicConfig/BankEditer',
          name: 'BankEditer',
          component: BankEditer,
          props: true,
          meta:{
            breadcrumbName:'开户行编辑'
          }
        },
        {
          path: '/BasicConfig/CommercialTenantConfig',
          name: 'CommercialTenantConfig',
          component: CommercialTenantConfig,
          meta:{
            breadcrumbName:'商家设置'
          }
        },
        {
          path: '/BasicConfig/LabelSetting',
          name: 'LabelSetting',
          component: LabelSetting,
          meta:{
            breadcrumbName:'标签设置'
          }
        },
        {
          path: '/BasicConfig/SmsSetting',
          name: 'SmsSetting',
          component: SmsSetting,
          meta:{
            breadcrumbName:'短信设置'
          }
        },
        {
          path: '/BasicConfig/TerritorialRestriction',
          name: 'TerritorialRestriction',
          component: TerritorialRestriction,
          meta:{
            breadcrumbName:'区域限制'
          }
        },
        {
          path: '/BasicConfig/WechatConfig',
          name: 'WechatConfig',
          component: WechatConfig,
          meta:{
            breadcrumbName:'微信公众号设置'
          }
        },
        {
          path: '/BasicConfig/TempletMessageConfig',
          name: 'TempletMessageConfig',
          component: TempletMessageConfig,
          meta:{
            breadcrumbName:'模板消息设置'
          }
        },
        {
          path: '/BasicConfig/FileUploadConfig',
          name: 'FileUploadConfig',
          component: FileUploadConfig,
          meta:{
            breadcrumbName:'文件上传设置'
          }
        },
        // 任务大厅
        {
          path: '/AssignmentHall/AssignmentAllot',
          name: 'AssignmentAllot',
          component: AssignmentAllot,
          meta:{
            breadcrumbName:'任务分配'
          }
        },
        // 订单管理
        {
          path: '/OrderManagement/OrderTabulation',
          name: 'OrderTabulation',
          component: OrderTabulation,
          meta:{
            breadcrumbName:'订单列表'
          }
        },
        // 代理商
        {
          path: '/AgentManagement/AgentTabulation',
          name: 'AgentTabulation',
          component: AgentTabulation,
          meta:{
            breadcrumbName:'代理商列表'
          }
        },
        {
          path: '/AgentManagement/AgentEditor',
          name: 'AgentEditor',
          component: AgentEditor,
          props: true,
          meta:{
            breadcrumbName:'代理商编辑'
          }
        },
        {
          path: '/AgentManagement/AgentConfigEditor',
          name: 'AgentConfigEditor',
          component: AgentConfigEditor,
          props: true,
          meta:{
            breadcrumbName:'代理商设置编辑'
          }
        },
        {
          path: '/AgentManagement/AgentDrawMoney',
          name: 'AgentDrawMoney',
          component: AgentDrawMoney,
          meta:{
            breadcrumbName:'代理商提现申请列表'
          }
        },
        {
          path: '/AgentManagement/AgentTransactionDetail',
          name: 'AgentTransactionDetail',
          component: AgentTransactionDetail,
          meta:{
            breadcrumbName:'代理商交易明细列表'
          }
        },
        {
          path: '/AgentManagement/AgentConfig',
          name: 'AgentConfig',
          component: AgentConfig,
          meta:{
            breadcrumbName:'代理商设置'
          }
        },
        {
          path: '/AgentManagement/AgentIngress',
          name: 'AgentIngress',
          component: AgentIngress,
          meta:{
            breadcrumbName:'代理商入口'
          }
        },
        {
          path: '/AgentManagement/ServicePersonalManagement',
          name: 'ServicePersonalManagement',
          component: ServicePersonalManagement,
          meta:{
            breadcrumbName:'配送员管理'
          }
        },
        // 配送人员
        {
          path: '/ServicePersonal/ServicePersonalApply',
          name: 'ServicePersonalApply',
          component: ServicePersonalApply,
          meta:{
            breadcrumbName:'配送员申请'
          }
        },
        {
          path: '/ServicePersonal/ServicePersonalTabulation',
          name: 'ServicePersonalTabulation',
          component: ServicePersonalTabulation,
          meta:{
            breadcrumbName:'配送员列表'
          }
        },
        {
          path: '/ServicePersonal/ServicePersonalTransactionDetail',
          name: 'ServicePersonalTransactionDetail',
          component: ServicePersonalTransactionDetail,
          meta:{
            breadcrumbName:'交易明细'
          }
        },
        {
          path: '/ServicePersonal/ServicePersonalGrade',
          name: 'ServicePersonalGrade',
          component: ServicePersonalGrade,
          meta:{
            breadcrumbName:'配送员评价'
          }
        },
        {
          path: '/ServicePersonal/ServiceDrawMoney',
          name: 'ServiceDrawMoney',
          component: ServiceDrawMoney,
          meta:{
            breadcrumbName:'配送员提现申请'
          }
        },
        {
          path: '/ServicePersonal/AuthorizationService',
          name: 'AuthorizationService',
          component: AuthorizationService,
          meta:{
            breadcrumbName:'授权服务'
          }
        },
        {
          path: '/ServicePersonal/ServiceRefundPromiseMoney',
          name: 'ServiceRefundPromiseMoney',
          component: ServiceRefundPromiseMoney,
          meta:{
            breadcrumbName:'配送员保证金退款'
          }
        },
        // 顾客
        {
          path: '/ConsumerManagement/AssociatorGrade',
          name: 'AssociatorGrade',
          component: AssociatorGrade,
          meta:{
            breadcrumbName:'会员等级'
          }
        },
        {
          path: '/ConsumerManagement/GrowthValueConfig',
          name: 'GrowthValueConfig',
          component: GrowthValueConfig,
          meta:{
            breadcrumbName:'会员成长值设置'
          }
        },
        {
          path: '/ConsumerManagement/AssociatorGradeEditor',
          name: 'AssociatorGradeEditor',
          component: AssociatorGradeEditor,
          props: true,
          meta:{
            breadcrumbName:'会员等级编辑'
          }
        },
        {
          path: '/ConsumerManagement/ConsumerTabulation',
          name: 'ConsumerTabulation',
          component: ConsumerTabulation,
          meta:{
            breadcrumbName:'顾客列表'
          }
        },
        {
          path: '/ConsumerManagement/ConsumerDrawMoney',
          name: 'ConsumerDrawMoney',
          component: ConsumerDrawMoney,
          meta:{
            breadcrumbName:'提现申请'
          }
        },
        // 模块管理
        {
          path: '/ModuleManagement/AutoModuleDock',
          name: 'AutoModuleDock',
          component: AutoModuleDock,
          meta:{
            breadcrumbName:'智能对接'
          }
        },
        {
          path: '/ModuleManagement/ModuleList',
          name: 'ModuleList',
          component: ModuleList,
          meta:{
            breadcrumbName:'模块列表'
          }
        },
        // {
        //   path: '/ModuleManagement/ModuleAuditing',
        //   name: 'ModuleAuditing',
        //   component: ModuleAuditing,
        //   meta:{
        //     breadcrumbName:'模块审核'
        //   }
        // },
        // 售后服务
        {
          path: '/AfterService/FeedbackTabulation',
          name: 'FeedbackTabulation',
          component: FeedbackTabulation,
          meta:{
            breadcrumbName:'用户反馈列表'
          }
        },
        // 营销管理
        {
          path: '/MarketingManagement/CouponTabulation',
          name: 'CouponTabulation',
          component: CouponTabulation,
          meta:{
            breadcrumbName:'优惠券'
          }
        },
        {
          path: '/MarketingManagement/CouponEditor',
          name: 'CouponEditor',
          component: CouponEditor,
          props: true,
          meta:{
            breadcrumbName:'优惠券编辑'
          }
        },
        {
          path: '/MarketingManagement/FullSubtractionTabulation',
          name: 'FullSubtractionTabulation',
          component: FullSubtractionTabulation,
          meta:{
            breadcrumbName:'满减奖励'
          }
        },
        {
          path: '/MarketingManagement/FullSubtractionEditor',
          name: 'FullSubtractionEditor',
          component: FullSubtractionEditor,
          props: true,
          meta:{
            breadcrumbName:'满减奖励编辑'
          }
        },
        {
          path: '/MarketingManagement/ReceivingOrderRewardTabulation',
          name: 'ReceivingOrderRewardTabulation',
          component: ReceivingOrderRewardTabulation,
          meta:{
            breadcrumbName:'接单奖励'
          }
        },
        {
          path: '/MarketingManagement/ReceivingOrderRewardEditor',
          name: 'ReceivingOrderRewardEditor',
          component: ReceivingOrderRewardEditor,
          props: true,
          meta:{
            breadcrumbName:'接单奖励编辑'
          }
        },
        // 平台设置
        {
          path: '/PlatformConfig/CashDepositGradeManagement',
          name: 'CashDepositGradeManagement',
          component: CashDepositGradeManagement,
          meta:{
            breadcrumbName:'保证金管理'
          }
        },
        {
          path: '/PlatformConfig/CashDepositGradeEditor',
          name: 'CashDepositGradeEditor',
          component: CashDepositGradeEditor,
          props: true,
          meta:{
            breadcrumbName:'保证金编辑'
          }
        },
        {
          path: '/PlatformConfig/PlatformPriceModelConfig',
          name: 'PlatformPriceModelConfig',
          component: PlatformPriceModelConfig,
          meta:{
            breadcrumbName:'计费设置'
          }
        },
        {
          path: '/PlatformConfig/DistanceFreightTempletManagement',
          name: 'DistanceFreightTempletManagement',
          component: DistanceFreightTempletManagement,
          meta:{
            breadcrumbName:'距离运费模板管理'
          }
        },
        {
          path: '/PlatformConfig/DistanceFreightTempletEditor',
          name: 'DistanceFreightTempletEditor',
          component: DistanceFreightTempletEditor,
          props: true,
          meta:{
            breadcrumbName:'距离运费模板编辑'
          }
        },
        {
          path: '/PlatformConfig/WeightFreightTempletManagement',
          name: 'WeightFreightTempletManagement',
          component: WeightFreightTempletManagement,
          meta:{
            breadcrumbName:'重量运费模板管理'
          }
        },
        {
          path: '/PlatformConfig/WeightFreightTempletEditor',
          name: 'WeightFreightTempletEditor',
          component: WeightFreightTempletEditor,
          props: true,
          meta:{
            breadcrumbName:'重量运费模板编辑'
          }
        },
        {
          path: '/PlatformConfig/FellInFreightTempletManagement',
          name: 'FellInFreightTempletManagement',
          component: FellInFreightTempletManagement,
          meta:{
            breadcrumbName:'排队金额模板管理'
          }
        },
        {
          path: '/PlatformConfig/FellInFreightTempletEditor',
          name: 'FellInFreightTempletEditor',
          component: FellInFreightTempletEditor,
          props: true,
          meta:{
            breadcrumbName:'排队金额模板编辑'
          }
        },
        {
          path: '/PlatformConfig/TimedFreightTempletManagement',
          name: 'TimedFreightTempletManagement',
          component: TimedFreightTempletManagement,
          meta:{
            breadcrumbName:'定时运费模板管理'
          }
        },
        {
          path: '/PlatformConfig/TimedFreightTempletEditor',
          name: 'TimedFreightTempletEditor',
          component: TimedFreightTempletEditor,
          props: true,
          meta:{
            breadcrumbName:'定时运费模板编辑'
          }
        },
        // 系统设置
        {
          path: '/SystemConfig/SystemInfo',
          name: 'SystemInfo',
          component: SystemInfo,
          meta:{
            breadcrumbName:'系统信息'
          }
        },
        // 插件管理
        {
          path: '/PluginManage/AllPlugin',
          name: 'AllPlugin',
          component: AllPlugin,
          meta:{
            breadcrumbName:'全部插件'
          }
        }
      ]
    },
    {
      path:'/Login',
      name:'Login',
      component: Login,
    },
    {
      path:'*',
      name:'*',
      component: Error,
    },
  ]
})
